package com.example.templatedemo

import android.util.Log
import com.example.lib_common.base.BaseMvvmFragment
import com.example.templatedemo.databinding.FragmentHomeBinding
import com.example.templatedemo.databinding.FragmentPublicBinding
import com.example.templatedemo.databinding.FragmentSquareBinding

class SquareFragment : BaseMvvmFragment<FragmentSquareBinding, MainVM2>() {
    private val name = this::class.java.simpleName

    override fun onFragmentShow() {
        Log.d("BaseMvvmFragment", "$name 对用户可见时调用")
    }

    /**
     * Fragment对用户不可见时调用
     */
    override fun onFragmentHide() {
        Log.d("BaseMvvmFragment", "$name 对用户不可见时调用")
    }

    /**
     * Fragment首次对用户可见时调用
     */
    override fun onFragmentFirstShow() {
        Log.d("BaseMvvmFragment", "$name 首次对用户可见时调用")
    }
}